<%= error_messages_for 'requirement' %>

<!--[form:requirement]-->
<p><label for="requirement_specification">Specification</label><br/>
<%= text_field 'requirement', 'specification'  %></p>

<p><label for="requirement_affected_project">Affected project</label><br/>
<% @keys = Project.find(:all).map {|k| [k.key, k.key]} %>
<%= select(:requirement, :affected_project, @keys) %></p>

<p><label for="requirement_affected_version">Affected version</label><br/>
<%= text_field 'requirement', 'affected_version'  %></p>

<p><label for="requirement_affected_project_category">Affected project category</label><br/>
<% @cats = ProjectCategory.find(:all).map {|c| [c.category, c.category]} %>
<%= select(:requirement, :affected_project_category, @cats) %></p>

<p><label for="requirement_create_date">Create date</label><br/>
<%= date_select 'requirement', 'create_date'  %></p>
<!--[eoform:requirement]-->

